﻿@{
    ViewBag.Title = "账号管理";

}

@using Webdiyer.WebControls.Mvc

@using System.Web.WebPages
@model  Webdiyer.WebControls.Mvc.PagedList<LoveEat.MODEL.employee>

    <link rel="stylesheet" href="~/Content/css/InfoManager.css" />
    @section Scripts{
      

        <script type="text/javascript">
            $(function () {
                //$('.remove-border').datetimepicker('setStartDate');
                $('.remove-border').datetimepicker({
                    format: 'yyyy-mm-dd'
                });
            });
        </script>
    }
    <ul class="breadcrumb">
        <li>
            <i class="icon-home"></i>
            <a href="/">
                首页
            </a>
            <i class="icon-angle-right">
            </i>
        </li>
        <li>
            <a href="#">
                账号管理
            </a>
        </li>
    </ul>
    <div class="content">

        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box grey">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="icon-credit-card"></i>
                            账号管理列表
                        </div>
                        <div class="tools">
                            <a href="javascript:;" class="collapse">
                            </a>

                        </div>
                        <div class="actions">
                            <a>
                                &nbsp;
                            </a>
                        </div>
                    </div>
                    <div class="portlet-body">
                        <form class="input-else" action="@Url.Action("Employee")" id="searchform" autocomplete="off">
                            <div>
                                <input type="text" id="account" name="account" placeholder="用户账号" class="form-control" style="">
                                <button class="btn btn-default searchbtn" style="  " type="su">
                                    <i class="icon-search">搜索</i>
                                </button>
                                @*<div class="input-prepend input-append" style="margin-top:0;">
                                    <a class="btn green" href="@Url.Action("EmployeeEdit", new { returnUrl = Request.Url })">
                                        新增
                                    </a>
                                </div>*@

                                <div class="input-prepend input-append" style="margin-top:0;">
                                    <a class="btn green" href="javascript:BatchDel()">
                                        批量删除
                                    </a>
                                </div>
                               <div class="input-prepend input-append" style="margin-top: 0px;">
                                   <a data-toggle="modal" data-target="#myModal" id="employee_id" class="btn purple"  onclick="chkFrom()">批量审核</a>
                                </div>
                             
                            </div>
                        </form>
                   
                        <div class="jqtable_panel ">
                            <div id="cont" class="dataTables_wrapper form-inline">
                                @Html.Partial("_EmployeeList", Model)
                            </div>
                        </div>
                    </div>
                </div>
            </div>
           
            <script>


                function chkFrom() {
                    //获取到所有name为'chkquestion'并选中的checkbox(集合)
                    var arrChk = $("input[name='checkbox']:checked");
                    //遍历得到每个checkbox的value值
                    if (arrChk.length <= 0) {
                        alert("你还没有选择一项！");
                        event.stopPropagation();
                        event.preventDefault();
                        return false;
                    } else {
                        var chk = "";
                        for (var i = 0; i < arrChk.length; i++) {
                            chk += arrChk[i].value + ",";
                        }
                        $("#employee_id").attr('href', '/BusinessManagement/ExamineEmployee?employee_ids='+chk+"&returnUrl=@Request.Url");
                     //   $("#employee_ids").val(chk);
                    }
                    return true;
                }
            </script>
            @*@{System.Web.WebPages.Html.RegisterMvcPagerScriptResource();}*@
